#include<iostream>

using namespace std;


int main()
{
	int arr[10] = { 0,1,2,3,4,5,6,7,8,9 };
	int * p0 = arr;
	int * p1 = arr;
	int i;

	for (i = 0; i < 10; i++)
	{
		cout << *(p1 + i) << " ";
	}
	cout << endl;
	for (i = 0; i < 10; i++)
	{
		cout << *p1 << " ";
		p1++;
	}
	cout << endl;


	system("pause");

	return 0;
}